﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace sqlsearcher.Services
{
    public class TFac<TClass> where TClass : class, new()
    {
        private static TClass _instance;
        public static TClass Instance
        {
            get
            {
                if (_instance == null)
                {
                    _instance = Activator.CreateInstance<TClass>();
                }
                return _instance;
            }
        }

    }
}
